Produced by Araxis Merge on 2024-03-04 14:38:52 +0000. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | /Users/coca/Documents/www/Porto v4.0.2/Theme Files/Magento 2.x/Porto Theme v4.0.7/app/design/frontend/Smartwave/porto/Smartwave_Megamenu/templates | topmenu.phtml | 2023-11-22 09:15:50 +0000 |
| 2 | /Users/coca/Documents/www/Porto v4.0.2/Theme Files/Magento 2.x/Porto Theme v4.0.8/app/design/frontend/Smartwave/porto/Smartwave_Megamenu/templates | topmenu.phtml | 2024-02-25 09:15:54 +0000 |
| Description | Between Files 1 and 2 | |
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 3 | 98 |
| Changed | 2 | 4 |
| Inserted | 0 | 0 |
| Removed | 0 | 0 |
| Whitespace | Consecutive whitespace is treated as a single space |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Not shown in the comparison detail |
| Active line-pairing rules |
No regular expressions were active.
| 1 | <?php | 1 | <?php | |||
| 2 | /** | 2 | /** | |||
| 3 | * Copyright © 2018 Porto. All rights reserved. | 3 | * Copyright © 2018 Porto. All rights reserved. | |||
| 4 | */ | 4 | */ | |||
| 5 | 5 | |||||
| 6 | ?> | 6 | ?> | |||
| 7 | <?php | 7 | <?php | |||
| 8 | /** | 8 | /** | |||
| 9 | * Top menu for store | 9 | * Top menu for store | |||
| 10 | * | 10 | * | |||
| 11 | * @see \Smartwave\Megamenu\Block\Topmenu | 11 | * @see \Smartwave\Megamenu\Block\Topmenu | |||
| 12 | */ | 12 | */ | |||
| 13 | ?> | 13 | ?> | |||
| 14 | <?php | 14 | <?php | |||
| 15 | $_helper = $this->helper('Smartwave\Megamenu\Helper\Data'); | 15 | $_helper = $this->helper('Smartwave\Megamenu\Helper\Data'); | |||
| 16 | $_config = $_helper->getConfig('sw_megamenu'); | 16 | $_config = $_helper->getConfig('sw_megamenu'); | |||
| 17 | $columnsLimit = 0; | 17 | $columnsLimit = 0; | |||
| 18 | $header_type = $_helper->getConfig('porto_settings/header/header_type'); | 18 | $header_type = $_helper->getConfig('porto_settings/header/header_type'); | |||
| 19 | 19 | |||||
| 20 | if($_config['general']['enable']) { | 20 | if($_config['general']['enable']) { | |||
| 21 | ?> | 21 | ?> | |||
| 22 | <?php $_menu = $block->getMegamenuHtml(); ?> | 22 | <?php $_menu = $block->getMegamenuHtml(); ?> | |||
| 23 | 23 | |||||
| 24 | <nav class="navigation sw-megamenu <?php if($header_type == 7 || $header_type == 8 || $header_type == 18 || $header_type == 22 || $header_type == 25 | 24 | <nav class="navigation sw-megamenu <?php if($header_type == 7 || $header_type == 8 || $header_type == 18 || $header_type == 22 || $header_type == 25 || $header_type == 26 || $header_type == 27): ?>side-megamenu<?php endif; ?>" role="navigation"> | |||
| 25 | <ul> | 25 | <ul> | |||
| 26 | <?php echo $_menu; ?> | 26 | <?php echo $_menu; ?> | |||
| 27 | </ul> | 27 | </ul> | |||
| 28 | </nav> | 28 | </nav> | |||
| 29 | 29 | |||||
| 30 | <script type="text/javascript"> | 30 | <script type="text/javascript"> | |||
| 31 | require([ | 31 | require([ | |||
| 32 | 'jquery', | 32 | 'jquery', | |||
| 33 | 'Smartwave_Megamenu/js/sw_megamenu' | 33 | 'Smartwave_Megamenu/js/sw_megamenu' | |||
| 34 | ], function ($) { | 34 | ], function ($) { | |||
| 35 | $(".sw-megamenu").swMegamenu(); | 35 | $(".sw-megamenu").swMegamenu(); | |||
| 36 | }); | 36 | }); | |||
| 37 | </script> | 37 | </script> | |||
| 38 | <?php | 38 | <?php | |||
| 39 | } else { | 39 | } else { | |||
| 40 | ?> | 40 | ?> | |||
| 41 | <?php $_menu = $block->getHtml('level-top', 'submenu', $columnsLimit); ?> | 41 | <?php $_menu = $block->getHtml('level-top', 'submenu', $columnsLimit); ?> | |||
| 42 | 42 | |||||
| 43 | <nav class="navigation sw-megamenu" role="navigation"> | 43 | <nav class="navigation sw-megamenu" role="navigation"> | |||
| 44 | <ul data-mage-init='{"menu":{"responsive":true, "expanded":true, "position":{"my":"left top","at":"left bottom"}}}'> | 44 | <ul data-mage-init='{"menu":{"responsive":true, "expanded":true, "position":{"my":"left top","at":"left bottom"}}}'> | |||
| 45 | <?php /* @escapeNotVerified */ echo $_menu; ?> | 45 | <?php /* @escapeNotVerified */ echo $_menu; ?> | |||
| 46 | </ul> | 46 | </ul> | |||
| 47 | </nav> | 47 | </nav> | |||
| 48 | 48 | |||||
| 49 | <?php | 49 | <?php | |||
| 50 | } | 50 | } | |||
| 51 | ?> | 51 | ?> |
Araxis Merge (but not the data content of this report) is Copyright © 1993–2019 Araxis Ltd (www.araxis.com). All rights reserved.